// 创建node web服务
const http=require("http");
const fs=require("fs");
http.createServer(function(request,response){
    console.log("request come",request.url);

    const html=fs.readFileSync('test.html',"utf8");
    response.writeHead(200,{
        "Content-type":"text/html",
    })
    response.end(html);
}).listen(8888);
console.log("node server listenering 8888:")